<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="images/admin.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/geetest/gt.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/geetest/pc.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>
<script>
var weburl="{yun:}$config.sy_weburl{/yun}",code_web='{yun:}$config.code_web{/yun}',code_kind='{yun:}$config.code_kind{/yun}';
function checkform(){
	if($('#username').val()==''){
		layer.msg('请填写管理员账户！', 2, 8);return false;  
	}
	if($('#password').val()==''){
		layer.msg('请填写登录密码！', 2, 8);return false;  
	}
	var codesear=new RegExp('后台登录');
	if(codesear.test(code_web)){
		if(code_kind==1){
			authcode=$("#ipt_code").val();
			if(authcode==''){
				layer.msg('请填写验证码！', 2, 8);return false;  
				return false;
			}
		}else if(code_kind==3){
			geetest_challenge = $('input[name="geetest_challenge"]').val();
			geetest_validate = $('input[name="geetest_validate"]').val();
			geetest_seccode = $('input[name="geetest_seccode"]').val();
			if(geetest_challenge =='' || geetest_validate=='' || geetest_seccode==''){

				$("#popup-submit").trigger("click");
				layer.msg('请点击按钮进行验证！', 2, 8);return false;
			}
		}
	}
	return true;
}
function checkCode(id){
	document.getElementById(id).src=weburl+"/app/include/authcode.inc.php?"+Math.random();
}
</script>
<title>{yun:}$config.sy_webname{/yun} - 分站后台管理中心</title>
</head>
<body>


<div class="admin_logo_bg">
<div class="logoin_top"></div>
<div class="logoin_cont">
<div class="login_box">
<div class="logoin_c">
<div class="logoin_c_box">
<div class="logoin_logo"><img src="../{yun:}$config.sy_logo{/yun}"><div class="logoin_logo_fz">{yun:}$config.cityname{/yun}</div></div>
	<div class="login_iptbox">
	<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
	<form action="" method="post" target="supportiframe" id='sublogin' onsubmit='return checkform();'>
    <ul class="logoin_list">
		<li><span class="logoin_list_a"><label for="username">&nbsp; </label></span><input type="text" class="ipt" size="10" name="username" value="" placeholder="账号"/></li>
		<li><span class="logoin_list_b"><label for="password">&nbsp; </label></span><input type="password" class="ipt" name="password" value=""  placeholder="密码"/></li>
        {yun:}if strpos($config.code_web,"后台登录")!==false{/yun}
		  <li>
		 {yun:}if $config.code_kind==3{/yun}	
		<!---geetest----->
        <div style="width:385px;">
		<div id="popup-captcha" data-id='sublogin' data-type='submit'></div>
		<input type='hidden' id="popup-submit">
             </div>
		{yun:}else{/yun}
	
		<span  class="logoin_list_b"><label for="code">&nbsp; </label></span>
		<input type="text" id="ipt_code" class="ipt_code" placeholder="验证码" name="authcode" value="" />
		<a href="javascript:void(0);" onclick="checkCode('vcode_imgs');">
		<img src="{yun:}$config.sy_weburl{/yun}/app/include/authcode.inc.php" id='vcode_imgs' align="absmiddle" >
		</a>
		
		<input type="hidden" id="code_kind" value="1" />
		
		{yun:}/if{/yun}
		 </li>
	    {yun:}/if{/yun} 
		<li><input type="submit" class="admin_login_sub" name="login_sub" value="登录" /><input type="reset" class="admin_login_sub admin_login_sub1" name="login_sub" value="重置" /></li>
      </ul>
	  <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
	</form>
	</div>
    </div>
    
</div>
</div>
</div>
</div>
<div class="clear"></div>

</body>
</html>